# coding=utf-8
import re

# 定义正则表达式
pattern = "hello"
# 目标字符串
str = "Hello world"
# match函数的使用
# 忽略大小写
result = re.match(pattern, str, re.I)
print(result)
# print(dir(result))
# print("匹配内容：", result.group())
# print("匹配字符串的位置: ", result.span())
